import request from '../../utils/request';

export const getPrescriptions = query => {
    return request({
        url: '/api/stand/yun/prescription/doMain',
        method:'post',
        // url: './json/prescriptionlist.json',
        // method: 'get',
        params: query,
    });
};
export const selectBypreId = query => {
    return request({
        // url: './json/prescriptionOne.json',
        // method: 'get',
        url: '/api/stand/yun/prescription/selectById',
        method:'post',
        params: query,
    });
};

//删除处方
export const doDelete = query => {
    return request({
        url: '/api/stand/prescription/doDelete',
        method:'delete',
        // url:'./json/addORupdatepatient.json',
        // method: 'get',
        params: query
    });
};
//修改编辑用户
export const doUpdate = query => {
    return request({
        url: '/api/stand/prescription/doUpdate',
        method:'post',
        // url:'./json/addORupdatepatient.json',
        // method: 'get',
        params: query
    });
};
//获取所有治疗师
export const getcrtBys = () => {
    return request({
        url: '/api/stand/prescription/preTherapes',
        method:'post',
        // url:'./json/userlist.json',
        // method: 'get',
    });
};


